<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Webserver extends MX_Controller {

    public function __construct() {
        parent::__construct();
    }

    public function index() {
        require_once 'webservice.php';
        $this->load->library('zend');
        $this->zend->load('Zend_Rest_Server');
        $server = new Zend_Rest_Server();
        $server->setClass('Webservice');
        $server->handle();
    }
}